﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using kim.Common;
namespace kim
{
    public partial class UsersList :kim.UI.ManagePage
    {
        protected string StrPage;
        protected int pageSize, pageIndex, typeid;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetStrPage();
            }
        }
        private void GetStrPage()
        {
            pageIndex = KIMRequest.GetInt("p", 1);

            pageSize = 10;
            pageIndex = KIMRequest.GetInt("p", 1);
            kim.BLL.eg_Admin bll = new kim.BLL.eg_Admin();
            int count = SqlDbHelper.GetPageCurrent("eg_Admin", "");
            using (DataSet dt = bll.GetNewsPager(pageIndex, pageSize, "", "id Desc", ""))
            {
                rptlist.DataSource = dt;
                rptlist.DataBind();
            }
            StrPage = kim.Common.Utils.OutPageList(pageSize, pageIndex, count, "UsersList.aspx?p=__id__&typeid=" + typeid, 8);
        }
        

        
    }
}